package com.mybatisflex.demo.dynamic;

import com.mybatisflex.core.table.DynamicTableProcessor;

import static com.mybatisflex.demo.entity.table.AccountTableDef.ACCOUNT;

/**
 * @author 王帅
 * @since 2023-08-23
 */
public class MyDynamicTableProcessor implements DynamicTableProcessor {

    @Override
    public String process(String tableName) {
        if (ACCOUNT.getTableName().equals(tableName)) {
            return tableName + "_copy" + 1;
        }
        return tableName;
    }

}